//
//  XMPropertyInfoView.m
//  XMJJ_zml
//
//  Created by apple on 2025/5/10.
//

#import "XMPropertyView.h"

@interface XMPropertyView ()

@property (nonatomic, strong) UILabel *moneyLabel;
@property (nonatomic, strong) UILabel *usableLabel;

@end

@implementation XMPropertyView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self creatUI];
    }
    return self;
}

- (void)creatUI {
//    self.backgroundColor = kColorHEX(0xF5F5F5);
    [self setPartCornerWithRectCorner:UIRectCornerTopLeft | UIRectCornerTopRight cornerRadius:KScaleWidth(16.0)];
    UIView *contentView = [[UIView alloc] initWithFrame:CGRectMake(KScaleWidth(10.0), KScaleWidth(13.0), self.width - KScaleWidth(10.0), KScaleWidth(96.0))];
    contentView.backgroundColor = kColorHEX(0xffffff);
    [contentView setCornerRadius:KScaleWidth(12.0)];
    [self addSubview:contentView];
    {
        UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(KScaleWidth(10.0), KScaleWidth(7.0), KScaleWidth(60.0), KScaleWidth(30.0)) font:KFontSize(16.0) textColor:kColorHEX(0x333333)];
        titleLabel.text = @"作品";
        [contentView addSubview:titleLabel];
        [contentView addSubview:self.moneyLabel];
    }
 
  
}

//查看明细
- (void)detailCheckAction:(UIButton *)button {
    
}

//提现
- (void)putForwardAction:(UIButton *)button {
    
}

//交易类型选择
- (void)itemSelectAction:(UIButton *)button {
    
}

- (UILabel *)moneyLabel {
    if (!_moneyLabel) {
        _moneyLabel = [[UILabel alloc] initWithFrame:CGRectMake(KScaleWidth(76.0), 0, self.width - KScaleWidth(76.0) - KScaleWidth(60.0), KScaleWidth(33.0)) font:KBoldFontSize(18.0) textColor:kColorHEX(0x000000)];
    }
    return _moneyLabel;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
